package com.sbtr.business.publishtask.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sbtr.business.publishtask.entity.PlatformPredictTask;
import com.sbtr.common.PageDto;
import com.sbtr.open.publishtask.dto.PlatformPredictSearchDto;
import com.sbtr.open.publishtask.dto.PlatformPredictTaskDto;
import com.sbtr.open.publishtask.dto.PredictNlpOneDto;
import com.sbtr.open.publishtask.dto.PredictOcrDto;
import org.springframework.web.bind.annotation.*;

public interface IPlatformPredictTaskService extends IService<PlatformPredictTask> {

    public PlatformPredictTaskDto findById(Long id);

    public PlatformPredictTaskDto save(PlatformPredictTaskDto dto);

    public PageDto<PlatformPredictTaskDto> search(PlatformPredictSearchDto dto);

    public boolean checkFileSize(long len, int size, String unit);

    public String getResultUrl(Long id);

    public PredictOcrDto startTaskSingle(String filePath);

    public PredictNlpOneDto startLanguageSingle(String languageType,String comment
    );


    public boolean ocrMulti(Long id);


    public boolean languageMulti(PlatformPredictTaskDto dto);
}
